Resource Bundle

To add a resource bundle to a class which is using its keys, do the following:

  1. In the Class Editor, select the ResourceBundle object from the palette.
  2. This appears in the invisible beans area.
  3. Change the variable name of the resource bundle to the class name you provided in the Resource Bundle Editor.
  4. Display the Property Sheet for the resource bundle and change its initialization code using "Code Expression" to:

    ResourceBundle.getBundle("ClassName")

    where "ClassName" is the name of the class you have generated.

Note: Please note that resources fetched from a resource bundle do not affect the dynamic display. They will display correctly when the generated code is run.